<template>
  <div class="demo-container">
    <el-card class="demo-card">
      <template #header>
        <div class="card-header">
          <span>防抖节流演示</span>
        </div>
      </template>
      <div class="card-content">
        <DemoThrottle />
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import DemoThrottle from '@/components/DemoThrottle.vue'
</script>

<style scoped lang="scss">
.demo-container {
  height: calc(100vh - var(--header-height) - var(--footer-height) - 30px);
  
  .demo-card {
    height: 100%;
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .card-content {
      height: calc(100% - 55px);
      overflow-y: auto;
      padding: 20px;
      box-sizing: border-box;
    }
  }
}
</style> 